package cn.ticket.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import cn.ticket.model.Relatives;
@Repository 
@Transactional
public interface RelativesMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Relatives record);

    int insertSelective(Relatives record);

    Relatives selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Relatives record);

    int updateByPrimaryKey(Relatives record);
    
    List<Relatives> getAll();
    
    List<Relatives> getByStaffId(@Param("staffId")int staffId);
    
    List<Relatives> getByStaffIdAndName(@Param("staffId")int staffId,@Param("name")String name);
}